{config_load file="lang/$language/lang_$language.conf" section="reviews"}
{if $SUCCESS_MSG}
	<div class="green ac">{$SUCCESS_MSG}</div>
{elseif $ERROR_MSG}
	<div class="red ac">{$ERROR_MSG}</div>
{else}
	<h1>&empty; {#heading_reviews#} ({$TOTAL_REVIEWS})</h1>
	{$REVIEWS_COUNT}
	{foreach name=aussen item=module_data from=$module_content}
		<div class="bts p5">
			<strong>{#text_rating#}</strong> {$module_data.RATING}<br />
			<p>{$module_data.DATE} von {$module_data.AUTHOR}</p>
			<p>{$module_data.TEXT}</p>
		</div>
	{/foreach}
	<div class="page_break_div ac">{$NAVIGATION}</div>
{/if}
{if $FORM_ACTION_REVIEW}
	{$FORM_ACTION_REVIEW}
		<div data-role="fieldcontain">
			<label for="author">
				{#text_author#}
			</label>
			<input type="text" name="author" id="author" value="{$AUTHOR}" disabled />
		</div>
		<div data-role="fieldcontain">
			<label for="review">
				{#text_input#}
			</label>
				{$INPUT_TEXT|replace:'name="review"':'name="review" id="review"'|replace:'style="width:99.9%"':''}
		</div>
		<div data-role="fieldcontain">
			<label for="rating">
				{#text_rating#}</label>
			<input type="range" name="rating" id="rating" value="1" min="1" max="5"  />
		</div>
		<div data-role="fieldcontain">
			<label for="captcha_image_review">
				Aufgabe:
			</label>
			{$VVIMG|replace:'width="200"':'width="200" id="captcha_image_review"'}
		</div>
		<div data-role="fieldcontain">
			<label for="security_code_reviews">{#text_returning_eingabe#}</label>
				{$INPUT_CODE|replace:'name="security_code_reviews"':'name="security_code_reviews" id="security_code_reviews"'}
				
		</div>
		<div class="ui-grid-a">
			<div class="ui-block-a">
				<a href="#">{$BUTTON_SUBMIT|replace:'class="css_img_button"':'class="css_img_button" data-theme="b" data-role="button"'}</a>
			</div>
			<div class="ui-block-b">{$BUTTON_CANCEL|replace:'class="reviews_write_cancel"':'class="reviews_write_cancel" data-role="button" data-theme="d"'}</div>
		</div>
	{$FORM_END}
	{$JS_REVIEW}
{/if}